/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 获取紧急报警详情 GET /alarm/get */
export async function alarmGetUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.alarmGetUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingbaojingjiluchaxunvo>('/alarm/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 分页查询紧急报警记录 POST /alarm/page */
export async function alarmPageUsingPost({
  body,
  options,
}: {
  body: API.AlarmRecordQueryBoc79b49a94d844dc3A62d605f6f54c1c9;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVobaojingjiluchaxunvo>('/alarm/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改紧急报警状态 POST /alarm/update-status */
export async function alarmUpdateStatusUsingPost({
  body,
  options,
}: {
  body: API.AlarmRecordStatusBo2083881084a144f580551cc7f91dba88;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/alarm/update-status', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 紧急报警 POST /alarm/urgency-alarm */
export async function alarmUrgencyAlarmUsingPost({
  body,
  options,
}: {
  body: API.jinjibaojingxinxi;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/alarm/urgency-alarm', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
